package com.lujianbuping.system.opportunityprojectmanagementsystem.entity;

import java.time.LocalDateTime;

import javax.validation.constraints.NotNull;
/**
 *  功能实体
 * @author 张渊
 *
 */
public class MenuEntity {
	/**
	 * 功能id
	 */
	@NotNull
    private String id;
    /**
     * 主要功能
     */
    private String mainRole;
    /**
     * 功能代号
     */
	@NotNull
    private String code;
    /**
     * 功能名字
     */
	@NotNull
    private String name;
    /**
     * 功能图标
     */
    private String icon;
    /**
     * 功能的action
     */
    private String url;
    /**
     * 父菜单的id
     */
    private String parentId;
    /**
     * 显示顺序号，越小越在前(升序)
     */
    private String showOrder;
    /**
     * 标识位:0正常 1=禁用
     */
    private Byte flag;
    /**
     * 创建人
     */
    @NotNull
    private String createUserId;
    /**
     * 创建时间
     */
    @NotNull
    private LocalDateTime createTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * get set
     */
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getMainRole() {
        return mainRole;
    }

    public void setMainRole(String mainRole) {
        this.mainRole = mainRole == null ? null : mainRole.trim();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon == null ? null : icon.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId == null ? null : parentId.trim();
    }

    public String getShowOrder() {
        return showOrder;
    }

    public void setShowOrder(String showOrder) {
        this.showOrder = showOrder == null ? null : showOrder.trim();
    }

    public Byte getFlag() {
        return flag;
    }

    public void setFlag(Byte flag) {
        this.flag = flag;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId == null ? null : createUserId.trim();
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }
}